package com.lwl.java.base;

/**
 * @author lwl
 * @Description TODO
 * @date 2025/9/5 11:02
 */
public class BooleanCache {

    public static void main(String[] args) {
        Boolean a = true;
        Boolean b = true;
        if (a == b) {
            System.out.println("a == b");
        }
        Boolean c = new Boolean(true);
        Boolean d = new Boolean(true);
        if (c == d) {
            System.out.println("c == d");
        } else {
            System.out.println("c != d");
        }
    }

    interface Interface01 {
        void sayHello();
    }

    interface Interface02 {
        void sayHello(String name);
    }

    interface Interface03 extends Interface01, Interface02 {

    }

    class Class01 implements Interface03 {

        @Override
        public void sayHello() {

        }

        @Override
        public void sayHello(String name) {

        }
    }


}
